package top.xiaodaiyu.dell.control;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import top.xiaodaiyu.dell.common.ResultMap;

/**
 * @author by  Administrator
 * 包名空间  top.xiaodaiyu.dell.control
 * 用途
 * Created by dtt on 2018/8/1
 * Email 532199946@qq.com
 **/
@RestController
@RequestMapping("/user")
public class UserController {
    @Autowired
    private  ResultMap resultMap;

    @RequestMapping(value = "/getMessage", method = RequestMethod.GET)
    public ResultMap getMessage() {

        resultMap.setSucess("您拥有用户权限，可以获得该接口的信息！");
        return resultMap;
    }
}